Optimal. Leaf size=29 \[ \frac {\tanh ^{-1}(\sin (c+d x))}{2 d}-\frac {\tan ^{-1}(\sin (c+d x))}{2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 29, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.136, Rules used = {298, 203, 206} \[ \frac {\tanh ^{-1}(\sin (c+d x))}{2 d}-\frac {\tan ^{-1}(\sin (c+d x))}{2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 203
Rule 206
Rule 298
Rubi steps
\begin {align*} \int \frac {\tan (c+d x)}{\csc (c+d x)+\sin (c+d x)} \, dx &=\frac {\operatorname {Subst}\left (\int \frac {x^2}{1-x^4} \, dx,x,\sin (c+d x)\right )}{d}\\ &=\frac {\operatorname {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\sin (c+d x)\right )}{2 d}-\frac {\operatorname {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\sin (c+d x)\right )}{2 d}\\ &=-\frac {\tan ^{-1}(\sin (c+d x))}{2 d}+\frac {\tanh ^{-1}(\sin (c+d x))}{2 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 24, normalized size = 0.83 \[ \frac {\tanh ^{-1}(\sin (c+d x))-\tan ^{-1}(\sin (c+d x))}{2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.44, size = 37, normalized size = 1.28 \[ -\frac {2 \, \arctan \left (\sin \left (d x + c\right )\right ) - \log \left (\sin \left (d x + c\right ) + 1\right ) + \log \left (-\sin \left (d x + c\right ) + 1\right )}{4 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.39, size = 37, normalized size = 1.28 \[ -\frac {2 \, \arctan \left (\sin \left (d x + c\right )\right ) - \log \left ({\left | \sin \left (d x + c\right ) + 1 \right |}\right ) + \log \left ({\left | \sin \left (d x + c\right ) - 1 \right |}\right )}{4 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.16, size = 42, normalized size = 1.45 \[ -\frac {\ln \left (\sin \left (d x +c \right )-1\right )}{4 d}+\frac {\ln \left (\sin \left (d x +c \right )+1\right )}{4 d}-\frac {\arctan \left (\sin \left (d x +c \right )\right )}{2 d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.55, size = 35, normalized size = 1.21 \[ -\frac {2 \, \arctan \left (\sin \left (d x + c\right )\right ) - \log \left (\sin \left (d x + c\right ) + 1\right ) + \log \left (\sin \left (d x + c\right ) - 1\right )}{4 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.69, size = 61, normalized size = 2.10 \[ \frac {\mathrm {atanh}\left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}{d}-\frac {\mathrm {atan}\left (\frac {{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3}{2}+\frac {5\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{2}\right )-\mathrm {atan}\left (\frac {\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{2}\right )}{2\,d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\tan {\left (c + d x \right )}}{\sin {\left (c + d x \right )} + \csc {\left (c + d x \right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________